<?
/**
 * Enter description here...
 *
 */
define('G_BIN_CHECK_INCLUDE', 1);
include "common.inc.php";

$tpl = Bin::getView('writeWikiContent.tpl.html');

$titleID = intval($_G_INPUT_['titleID']);

if($titleID > 0 && $_G_INPUT_['type'] == 'editWiki')
{
	$wikiInfo = $wikiObj->getWikiList($titleID);
	$tpl->assign("wikiInfo", $wikiInfo[$titleID]);
	$tpl->assign("type", "editWiki");
}
else
{
	$tpl->assign("type", "addWiki");
}


$tpl->output();
?>